﻿@using NetCoreCMS.Common;
@using NetCoreCMS.Models;
@{
   Layout = "~/Areas/admin/Views/Shared/_LayoutList.cshtml";
   ViewBag.Title = "支付平台";
   List<Payment> list = ViewData["list"] as List<Payment>;
}

<form id="form1"  method="post" action="#">
<!--导航栏-->
<div class="location">
  <a href="javascript:history.back(-1);" class="back"><i class="iconfont icon-up"></i><span>返回上一页</span></a>
  <a href="../center/index"><i class="iconfont icon-home"></i><span>首页</span></a>
  <i class="arrow iconfont icon-arrow-right"></i>
  <span>订单设置</span>
  <i class="arrow iconfont icon-arrow-right"></i>
  <span>支付平台</span>
</div>
<!--/导航栏-->

<!--工具栏-->
<div id="floatHead" class="toolbar-wrap">
  <div class="toolbar">
    <div class="box-wrap">
      <a class="menu-btn"><i class="iconfont icon-more"></i></a>
      <div class="l-list">
        <ul class="icon-list">
          <li><a href="../site_payment_list/index"><i class="iconfont icon-return"></i><span>返回</span></a></li>
          <li><a href="../payment_edit/index?action=@CMSEnums.ActionEnum.Add"><i class="iconfont icon-close"></i><span>新增</span></a></li>
          <li><a href="javascript:;" onclick="submitSave();"><i class="iconfont icon-save"></i><span>保存</span></a></li>
          <li><a href="javascript:;" onclick="checkAll(this);"><i class="iconfont icon-check"></i><span>全选</span></a></li>
        </ul>
      </div>
      <div class="r-list">
        <input type="text" id="txtKeywords" class="keyword" value="@ViewBag.Keywords" />
        <a href="javascript:search();" id="lbtnSearch" class="btn-search"><i class="iconfont icon-search"></i></a>
      </div>
    </div>
  </div>
</div>
<!--/工具栏-->

<!--列表-->
<div class="table-container">
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="ltable" id="ltable">
  <tr>
    <th width="8%">序号</th>
    <th align="left" width="15%">名称</th>
    <th align="left" width="15%">图标</th>
    <th align="left">平台描述</th>
    <th align="left" width="8%">排序</th>
    <th width="8%">是否启用</th>
    <th width="10%">操作</th>
  </tr>
@foreach(Payment dr in list){
  <tr>
    <td align="center">
       <label>@dr.id</label>
    </td>
    <td><a href="../payment_edit/index?action=@CMSEnums.ActionEnum.Edit&id=@dr.id">@dr.title</a></td>
    <td>
       @if(dr.img_url == ""){
          @:-
       }
       else{
          <img width="120" src="@dr.img_url" />
       }
    </td>
    <td>@Html.Raw(dr.remark)</td>
    <td>
       <input type="text" id="txtSortId" class="sort" onkeydown="return checkNumber(event);" value="@dr.sort_id" />
    </td>
    <td align="center">@(dr.is_lock == 0 ? "√" : "×")</td>
    <td align="center"><a href="../payment_edit/index?action=@CMSEnums.ActionEnum.Edit&id=@dr.id">修改</a></td>
  </tr>
}
@if (list.Count == 0) {
   <tr><td align="center" colspan="7">暂无记录</td></tr>
}
</table>
</div>
<!--/列表-->

<!--内容底部-->
<div class="line20"></div>
<div class="pagelist">
  <div class="l-btns">
    <span>显示</span>
    <input type="text" id="txtPageNum" class="pagenum" value="@ViewBag.PageSize" onkeydown="return checkNumber(event);" onchange="search();" />
    <span>条/页</span>
  </div>
  <div class="default">@Html.Raw(ViewBag.PageContent)</div>
</div>
<!--/内容底部-->

</form>
